package cate.common.table.pvp.eliterace.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass(value = "冠军赛回合")
public class EliteRaceRoundRow extends ERow {
    @NoteField(value = "回合")
    public int round;

    @NoteField(value = "比赛类型")
    public byte type;

    @NoteField(value = "参赛人数")
    public int maxNum;

    @NoteField(value = "是否划分赛区")
    public boolean divideZone;

    @NoteField(value = "赛区数量")
    public int zoneNum;

    @NoteField(value = "积分")
    public int pointAdd;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.id = xrw.getInteger("ID", 0);
        this.round = xrw.getInteger("ID", 0);
        this.type = xrw.getByte("比赛类型", (byte) 1);
        this.maxNum = xrw.getInteger("参赛人数", 1);
        this.divideZone = xrw.getBoolean("是否划分赛区", false);
        this.zoneNum = xrw.getInteger("赛区数量", 1);
        this.pointAdd = xrw.getInteger("积分",0);
    }

    @Override
    public void decode() {}
}
